﻿using EscapeZone.Mapping.Elements;
using EscapeZone.Screens;
using EscapeZone.Serialization;

namespace EscapeZone.Mapping.Building
{
    public class CameraBuilder : GenericBuilder<CameraDefinition>
    {
        public CameraBuilder(EscapeGame game, GameScreen gameScreen) : base(game, gameScreen)
        {
        }

        public override IDefinable BuildElement(CameraDefinition definition)
        {
            return new Camera(Game, Screen, definition);
        }
    }
}